﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Manicure.Entity
{
    public class ETheme
    {
        #region Campos e Propriedades
        public ECliente eCliente { get; set; }
        public string DirVirtual { get; set; }
        public string Dominio { get; set; }
        public string SubDominio { get; set; }
        public int IdSkin { get; set; }
        public string Skin { get; set; }
        #endregion

        #region Construtor
        public ETheme()
        {
            DirVirtual = string.Empty;
            Dominio = string.Empty;
            SubDominio = string.Empty;
            IdSkin = 0;
            Skin = string.Empty;
            eCliente = new ECliente();
        }
        public ETheme(DataRow dtRow)
        {
            if (dtRow["DirVirtual"] != null) {DirVirtual = dtRow["DirVirtual"].ToString(); }
            if (dtRow["Dominio"] != null) { Dominio = dtRow["Dominio"].ToString(); }
            if (dtRow["SubDominio"] != null) { SubDominio = dtRow["SubDominio"].ToString(); }
            if (dtRow["Id_Skin"] != null) { IdSkin = Convert.ToInt32(dtRow["Id_Skin"]); }
            if (dtRow["Skin"] != null) { Skin = dtRow["Skin"].ToString(); }
            eCliente = new ECliente(dtRow);
        }
        #endregion
    }
}
